import React, { Component } from 'react';
class LifeChild extends Component {
    state = {  }
    componentWillReceiveProps (nextProps) {
      console.log('props', this.props.count, nextProps.count)
      if (this.props.count !== nextProps.count) {
        // 业务逻辑..
        console.log('要自动结算了...')
      }
    }
    render() { 
        return (<div>
         child：  {this.props.count}
        </div>);
    }
}
 
export default LifeChild;